/**
 * Package:com.goldcitynet.engine.api.as3.dto;
 * $Id$
 * Copyright(c) 2001-2005 www.afteryuan.com
 */
package com.afteryuan.engine.api.as3.dto;

/**
 * 动画的数据
 * 用于人物换装等功能
 * <p/>
 * <p><a href="As3CartoonData.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:afteryuan@afteryuan.com">$Author$</a>
 * @version $Revision$
 */
public class As3CartoonData extends AbstractAs3Object {

	private String id;

    /**
     * 方向,8个方向
     */
    private Integer direct;

    /**
     * 动作类型,走,跑,跳等等
     */
    private Integer pose;

    /**
     * 当前帧数(第几帧)
     */
    private Integer frameNumber;
    /**
     * 总帧数
     */
    private Integer frameCount;

    /**
     * 初始x
     */
    private Integer initX;
    /**
     * 初始y
     */
    private Integer initY;
    /**
     * 初始宽
     */
    private Integer width;
    /**
     * 初始高
     */
    private Integer height;
    private Long createTime;
    private byte[] bitmapData;

    private String cartoonId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getDirect() {
        return direct;
    }

    public void setDirect(Integer direct) {
        this.direct = direct;
    }

    public Integer getPose() {
        return pose;
    }

    public void setPose(Integer pose) {
        this.pose = pose;
    }

    public Integer getFrameNumber() {
        return frameNumber;
    }

    public void setFrameNumber(Integer frameNumber) {
        this.frameNumber = frameNumber;
    }

    public Integer getFrameCount() {
        return frameCount;
    }

    public void setFrameCount(Integer frameCount) {
        this.frameCount = frameCount;
    }

    public Integer getInitX() {
        return initX;
    }

    public void setInitX(Integer initX) {
        this.initX = initX;
    }

    public Integer getInitY() {
        return initY;
    }

    public void setInitY(Integer initY) {
        this.initY = initY;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public byte[] getBitmapData() {
        return bitmapData;
    }

    public void setBitmapData(byte[] bitmapData) {
        this.bitmapData = bitmapData;
    }

    public String getCartoonId() {
        return cartoonId;
    }

    public void setCartoonId(String cartoonId) {
        this.cartoonId = cartoonId;
    }

    @Override
    public String toString() {
        return "CartoonDataView{" +
                "id='" + id + '\'' +
                ", initX=" + initX +
                ", initY=" + initY +
                ", width=" + width +
                ", height=" + height +
                ", bitmapData=" + (bitmapData == null ? null : bitmapData.length) +
                '}';
    }
}